import { makeAutoObservable, action } from "mobx";
   
   class RootStore {
      mobile = "18337252813"
      token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTM0NCwibmFtZSI6IjE4MzM3MjUyODEzIiwiaWF0IjoxNjE1Mzk3MDI4LCJleHAiOjE2NDEzMTcwMjh9.5T6nFg-L3iFrGLMpwiZgGYb9yF9ep8CYcMT7ABaUDbo"
      userId = "183372528131615042962948"
  constructor() {
    makeAutoObservable(this)
  }
     

      
     // action行为 表示 changeName是个可以修改全局共享数据的方法
     @action setUserInfo(mobile, token, userId) {
       this.mobile = mobile
       this.token = token
       this.userId = userId
     }
    
   }
   
   export default new RootStore();